package com.blb.utils;

import java.util.UUID;

public class UUIDUtils {

    public static String getId(){
        return UUID.randomUUID().toString().replace("-", "");
    }

    //三个字段
    public static String id(){
        return UUID.randomUUID().toString().replace("-", "").substring(0,3);
    }

    public static String getIdByTopSix(){
        return UUID.randomUUID().toString().replace("-", "").substring(0,6).toUpperCase();
    }
}
